import maya.cmds as mc

class rename_commands():
    def __init__(self):
        pass
    def replaceSuff(self,obj = '',suff = ''):
        sufix = suff
        selename = obj 
        splitname=selename.split('_')
        newname=selename.replace(splitname[-1],sufix)
        return newname
        
    def deletePreName(self,oriName = '',deletePre = ''):
        splitName = str(oriName).split(deletePre)
        
        newName = ''
        for sn in splitName:
            newName = newName+sn
            
        return(newName)